package org.jimmy.tang.designpattern.structure.decorator;

/**
 * @author jimmy
 * 
 */
public abstract class Decorator implements Person {
    protected Person person;

    public void setPerson(Person person) {
        this.person = person;
    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.structure.decorator.Person#eat()
     */
    @Override
    public void eat() {
        person.eat();
    }

}
